import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import { MyAxiosPlug } from './utils/request'
import MyPlugin from '@/utils/plugins'
// 导入执行动态计算当前屏幕rem的基准大小
import 'amfe-flexible'

// 引入组件库vant
import Vant, { Lazyload } from 'vant'
// import 'vant/lib/index.css'
import 'vant/lib/index.less'
import './styles/index.less'

// 注册组件库
Vue.use(Vant)

// 引入请求插件,安装
Vue.use(MyAxiosPlug)
Vue.use(MyPlugin)

// 注册图片懒加载
Vue.use(Lazyload)

Vue.config.productionTip = false

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
